Annatommy of a click
many companies don't have E2E tests
The browser event model
Event Target
addEventListener
removeEventListener
dispatchEvent
How Events Work
capture phase (moving down, html, body, header, button)
target receives event
bubbling phase (moving up. button, header, body, html)
event delegation
Most UI systemms do this.
Stopping Propagation
e.stopPropagationn()
synnthetic events system
Normalization in React
they listen to events directly
Before Chrome Fires the Event
Chromium Wiki is excellent resource
The Debugger
Devtools protocol is based on WebSocket
HTTP REST JSON protocol
just a websocket client
dispatches DOM events directly
flakey